﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using University.Workshop.Presenters;

namespace University.Workshop.Tests
{
    public class ReportSaleProductMock:IReportSale
    {
        DateTime myDateInit;
        DateTime myDateEnd;
        string user;
        #region IMembers Provider
        public string ClientId
        {
            get;
            set;
        }
        public string ProductId
        {
            get;
            set;
        }
        public bool VisibleClient
        {
            get;
            set;
        }
        public bool VisibleProduct
        {
            get;
            set;
        }

        public string VariablesProduct
        {
            get;
            set;
        }
        public bool VisibilityReportViewer
        {
            get;
            set;
        }
        public DataTable DataReport
        {
            get;
            set;
        }
        public string ClientReport
        {
            get;
            set;
        }
        public string ProductReport
        {
            get;
            set;
        }
        public string VariablesClient
        {
            get;
            set;
        }

public DateTime  DateInit
{
    get { return myDateInit; }
}

public DateTime  DateEnd
{
	get { return myDateEnd; }
}

public string  UserId
{
	get { return user; }
}
        #endregion
        #region Search
        public void SearchTrue()
        {
            DataReport = DataAccess.ReportSalesProduct.GetReport(DateTime.Now.AddYears(-1), DateTime.Now, "101010", "med002");
            user = "1";
            ProductId="101010";
            ClientId="med002";

        }
        public void ReportState() {
            VisibleClient = false;
            VisibleProduct = false;
        }
         public void SetProduct()
        {
            VariablesProduct = "med002";
        }

         public void SetClient() {
             VariablesClient = "101010";
         }
         public void SearchReport()
         {
             myDateInit=DateTime.Now.AddYears(-1);
             myDateEnd=DateTime.Now;
         }
         public void SearchReportFailDate()
         {
             myDateInit = DateTime.Now;
             myDateEnd = DateTime.Now.AddYears(-1);
         }
         public void SearchReportFailData()
         {
             myDateInit = DateTime.Now;
             myDateEnd = DateTime.Now;
         }
#endregion
    }
}
